home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / internet / other / ka9q / nhclb120.zoo / files.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-18  |  4.2 KB  |  119 lines

  1. /* System-dependent definitions of various files, spool directories, etc */
  2.  
  3. #include "global.h"
  4. #include "config.h"
  5.  
  6. #if    (defined(__TURBOC__) || defined(LATTICE) || defined(MAC) || defined(ATARI_ST))
  7. /* These compilers require special open modes when reading binary files
  8.  * 
  9.  * "The single most brilliant design decision in all of UNIX was the
  10.  * choice of a SINGLE character as the end-of-line indicator" -- M. O'Dell
  11.  *
  12.  * "Whoever picked the end-of-line conventions for MS-DOS and the Macintosh
  13.  * should be shot!" -- P. Karn's corollary to O'Dells' declaration
  14.  *
  15.  * Index definitions for this array are in global.h
  16.  */
  17. char *binmode[] = {
  18.     "rb",    /* Read binary */
  19.     "wb",    /* Write binary */
  20.     "ab"    /* Append binary */
  21. };
  22. #else
  23. /* fopen modes for binary files under Aztec -- same as UNIX */
  24. char *binmode[] = {
  25.     "r",    /* Read */
  26.     "w",    /* Write */
  27.     "a"     /* Append */
  28. };
  29. #endif
  30.  
  31. #ifdef    ATARI_ST
  32. char *startup     = "\\net.rc";            /* Initialization file */
  33. char *userfile     = "\\ftpusers";        /* Authorized FTP users */
  34. char *Dfile      = "\\domain.txt";              /* domain file */
  35. char *hosts     = "\\hosts.net";        /* Unix style host table */
  36. char *mailspool = "\\spool\\mail";        /* Incoming mail */
  37.  
  38. char *mailqdir     = "\\spool\\mqueue";        /* Outgoing mail spool */
  39. char *mailqueue = "\\spool\\mqueue\\*.wrk";    /* Outgoing mail work files */
  40. char *routeqdir = "\\spool\\rqueue";        /* Queue for router */
  41. char *alias     = "\\alias";            /* The alias file */
  42. #ifdef    _FINGER
  43. char *fingersuf = ".txt";        /* Text info for finger command */
  44. char *fingerpath = "\\finger\\";    /* Path to finger info files */
  45. #endif
  46. #endif
  47.  
  48. #if    defined(MSDOS) || defined(__TURBOC__)
  49. char *startup = "/autoexec.net";    /* Initialization file */
  50. char *userfile = "/ftpusers";        /* Authorized FTP users and passwords */
  51. char *hosts = "/hosts.net";        /* Network host table */
  52. char *mailspool = "/spool/mail";    /* Incoming mail */
  53. char *mailqdir = "/spool/mqueue";    /* Outgoing mail spool */
  54. char *mailqueue = "/spool/mqueue/*.wrk";/* Outgoing mail work files */
  55. char *routeqdir = "/spool/rqueue";    /* queue for router */
  56. char *alias = "/alias";            /* the alias file */
  57. #ifdef _FINGER
  58. char *fingersuf = ".txt";        /* Text info for finger command */
  59. char *fingerpath = "/finger/";        /* Path to finger info files */
  60. #endif
  61. #endif
  62.  
  63. #ifdef    UNIX
  64. /*
  65.  * Base names for files -- environment variables NETHOME and NETSPOOL
  66.  * are used to specify the precise path.
  67.  */
  68. char *netexe = "net";        /* where the binary lives; for reset */
  69. char *startup = "startup.net";        /* Initialization file */
  70. char *config = "config.net";        /* Device configuration list */
  71. char *userfile = "ftpusers";
  72. char *hosts = "hosts.net";
  73. char *Dfile = "domain.txt";
  74. char *mailspool = "mail";
  75. char *mailqdir = "mqueue";
  76. char *mailqueue = "mqueue/*.wrk";
  77. char *routeqdir = "rqueue";        /* queue for router */
  78. char *alias = "aliases";            /* the alias file */
  79. #ifdef _FINGER
  80. char *fingersuf = ".txt";        /* Text info for finger command */
  81. char *fingerpath = "finger/";        /* Path to finger info files */
  82. #endif
  83. #endif
  84.  
  85. #ifdef    AMIGA
  86. char *startup = "TCPIP:net.start";
  87. char *config = "TCPIP:config.net";    /* Device configuration list */
  88. char *userfile = "TCPIP:ftpusers";
  89. char *hosts = "TCPIP:hosts.net";
  90. char *mailspool = "TCPIP:spool/mail";
  91. char *mailqdir = "TCPIP:spool/mqueue";
  92. char *mailqueue = "TCPIP:spool/mqueue/*.wrk";
  93. char *routeqdir = "TCPIP:spool/rqueue";        /* queue for router */
  94. char *alias = "TCPIP:alias";    /* the alias file */
  95. #ifdef _FINGER
  96. char *fingersuf = ".txt";        /* Text info for finger command */
  97. char *fingerpath = "TCPIP:finger/";    /* Path to finger info files */
  98. #endif
  99. #endif
  100.  
  101. #ifdef    MAC
  102. char *startup ="Mikes Hard Disk:net.start";
  103. char *config = "Mikes Hard Disk:config.net";    /* Device configuration list */
  104. char *userfile = "Mikes Hard Disk:ftpusers";
  105. char *hosts = "Mikes Hard Disk:hosts.net";
  106. char *mailspool = "Mikes Hard Disk:spool:mail:";
  107. char *mailqdir = "Mikes Hard Disk:spool:mqueue:";
  108. char *mailqueue = "Mikes Hard Disk:spool:mqueue:*.wrk";
  109. char *routeqdir = "Mikes Hard Disk:spool/rqueue:";    /* queue for router */
  110. char *alias = "Mikes Hard Disk:alias";    /* the alias file */
  111. #ifdef _FINGER
  112. /* is this for real? */
  113. char *fingersuf = ".txt";        /* Text info for finger command */
  114. char *fingerpath = "Mikes Hard Disk:finger/";    /* Path to finger info files */
  115. #endif
  116. #endif
  117.  
  118.  
  119.